import clr
import sys
import os
clr.AddReference('PBSD_Development')
clr.AddReference('System.Collections')

from System.Collections.Generic import List
from System import Single
from System import Tuple
#from System.Collections.Generic import Dictionary
import PBSD_Development

# PF3DS或.tcl所在文件夹路径
directPath = "J:\\2017吴梓楠\\20200918\\公寓模型-- 20200620\\Model"

# 创建分析结果
result = PBSD_Development.FEMResultObj(directPath)
# 读取构件性能分析结果
suceess = result.SetElementResult()

for loadcase in result.LoadCaseList:
    for elementGroup in result.ElementGroupList:
        loadcaseName = loadcase.Name
        groupName = elementGroup.Descp
        ratioDict = result.GetStoreyDeformationPerformRatio(loadcase, elementGroup);
        ratioList = ratioDict[1]
        a = 0

a=0